package com.aaa.tars.service.impl;

import com.aaa.tars.dao.OperateLogDao;
import com.aaa.tars.entity.OperateLog;
import com.aaa.tars.service.OperateLogService;
import com.aaa.tars.vo.OperateLogCountVo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @FileName: OperLogServiceImpl
 * @Description:
 * @Author: xm
 * @CreateTime: 2025/9/18 11:00
 * @Version: 1.0.0
 */
@Service
public class OperateLogServiceImpl implements OperateLogService {

    @Resource
    private OperateLogDao operateLogDao;
    @Override
    public int add(OperateLog operateLog) {
        return operateLogDao.add(operateLog);
    }

    @Override
    public List<OperateLogCountVo> queryEchartsDataByYearMonth(String yearMonth) {
        return operateLogDao.queryEchartsDataByYearMonth(yearMonth);
    }
}
